#include <stdio.h>
#include <string.h>
#include "../include/utils.h"

int main(){
    int n;
    int plist[256];
    int len;
    
    printf("n = 1312:\n");
    n = 1312;
    SmallPrimeList(n, plist, &len);
    printf("len: %d\n", len);
    for(int i = 0; i < len; i++){
        printf("%d ", plist[i]);
    }
    printf("\n");

    printf("n = 2:\n");
    n = 2;
    SmallPrimeList(n, plist, &len);
    printf("len: %d\n", len);
    for(int i = 0; i < len; i++){
        printf("%d ", plist[i]);
    }
    printf("\n");

    printf("n = 20191312:\n");
    n = 2019312;
    SmallPrimeList(n, plist, &len);
    printf("len: %d\n", len);
    for(int i = 0; i < len; i++){
        printf("%d ", plist[i]);
    }
    printf("\n");
    return 0;
}